package com.atydh.gulimall.produck.service.impl;

import org.springframework.stereotype.Service;

import java.security.Key;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atydh.common.utils.PageUtils;
import com.atydh.common.utils.Query;

import com.atydh.gulimall.produck.dao.AttrDao;
import com.atydh.gulimall.produck.entity.AttrEntity;
import com.atydh.gulimall.produck.service.AttrService;
import org.springframework.util.StringUtils;


@Service("attrService")
public class AttrServiceImpl extends ServiceImpl<AttrDao, AttrEntity> implements AttrService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
            IPage<AttrEntity> page = this.page(
                    new Query<AttrEntity>().getPage(params),
                    new QueryWrapper<AttrEntity>()
            );

            return new PageUtils(page);


    }


}